package imgshare.model;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * follow
 * @author 
 */
public class FollowKey implements Serializable {

    @NotNull(message = "关注主体标识不能为空")
    private Integer subjectId;

    @NotNull(message = "被关注者标识不能为空")
    private Integer beFollowedId;

    private static final long serialVersionUID = 1L;

    public Integer getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(Integer subjectId) {
        this.subjectId = subjectId;
    }

    public Integer getBeFollowedId() {
        return beFollowedId;
    }

    public void setBeFollowedId(Integer beFollowedId) {
        this.beFollowedId = beFollowedId;
    }

    @Override
    public String toString() {
        return "FollowKey{" +
                "subjectId=" + subjectId +
                ", beFollowedId=" + beFollowedId +
                '}';
    }
}